﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlexFlow.Model
{
    /// <summary>
    /// 工作流表单状态
    /// </summary>
    public enum WorkFlowFormStatus
    {
        /// <summary>
        /// 已保存
        /// </summary>
        Saved,
        /// <summary>
        /// 已生效
        /// </summary>
        Worked,
        /// <summary>
        /// 已作废
        /// </summary>
        Canceled
    }
    /// <summary>
    /// 工作流表单定义
    /// </summary>
    public class WorkFlowForm : PhysicalModel, INamedPhysicalModel
    {
        /// <summary>
        /// 表单名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 表单创建者
        /// </summary>
        public Guid Creator { get; set; }
        /// <summary>
        /// 绑定的表单模板
        /// </summary>
        public Guid Template { get; set; }
        /// <summary>
        /// 表示该表单的创建日期
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 表单内容
        /// 其中键为表单项名称，值为表单项的值
        /// </summary>
        public Dictionary<string, Object> Content { get; set; }
    }
}
